Skip to content

Conversation

hawkingrei
Copy link
Member

@hawkingrei hawkingrei commented Feb 7, 2025

What problem does this PR solve?

Issue Number: close #59303

Problem Summary:

What changed and how does it work?

as shown, creating parser spend too much time. so we need to reuse this parser.

Image

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed do-not-merge/needs-linked-issue do-not-merge/needs-tests-checked labels Feb 7, 2025
@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 7, 2025
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.4747%. Comparing base (a2b6578) to head (d9185d1).
Report is 1 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #59304        +/-   ##
================================================
+ Coverage   73.0520%   73.4747%   +0.4227%     
================================================
  Files          1689       1689                
  Lines        466992     467035        +43     
================================================
+ Hits         341147     343153      +2006     
+ Misses       104860     102896      -1964     
- Partials      20985      20986         +1     
Flag Coverage Δ
integration 42.8034% <100.0000%> (?)
unit 72.2451% <100.0000%> (-0.0207%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.6910% <ø> (ø)
parser ∅ <ø> (∅)
br 45.4631% <ø> (+0.0458%) ⬆️

@hawkingrei
Copy link
Member Author

/retest

Copy link
Member

@YangKeao YangKeao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

ti-chi-bot bot commented Feb 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lance6716, YangKeao

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Feb 7, 2025
Copy link

ti-chi-bot bot commented Feb 7, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-02-07 05:10:22.569137699 +0000 UTC m=+421294.101549692: ☑️ agreed by lance6716.
  • 2025-02-07 05:34:59.211095399 +0000 UTC m=+422770.743507394: ☑️ agreed by YangKeao.

@ti-chi-bot ti-chi-bot bot merged commit 1304c77 into pingcap:master Feb 7, 2025
24 checks passed
zeminzhou pushed a commit to zeminzhou/tidb that referenced this pull request May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reuse parser in the generatedexpr.ParseExpression
3 participants